<header class="bar bar-nav to-padding-top">
    <a class="icon icon-left pull-left external" href="javascript:app.backLastPosition()"></a>
    <a class="icon icon-check pull-right external" ng-show="isEdit" ng-click="editInfo()"></a>
    <h1 class='title'>用户信息</h1>
</header>

<div  class="content" ng-init="getInfo();">
    <div class="avatar-content">
        <a href="javascript:;">
            <div class="avatar">
                <img ng-if="userInfo.userAvatar" ng-src="{{userInfo.userAvatarAddress}}" alt="">
                <img ng-if="!userInfo.userAvatar" src="../img/loginnone.png" alt="">
                <input accept="image/jpg,image/jpeg,image/png" onchange="angular.element(this).scope().img_upload(this.files)" type="file">
            </div>
        </a>
    </div>
    <div class="list-block">
        <ul>
            <!-- Text inputs -->
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-name"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">手机号</div>
                        <div class="item-input">
                            <input class="phone-number" disabled type="text" ng-model="userInfo.userPhoneNumber" placeholder="你的手机号">
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-email"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">昵称</div>
                        <div class="item-input">
                            <input type="text" ng-model="userInfo.userNickName" placeholder="未设置">
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-password"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">年龄</div>
                        <div class="item-input">
                            <input type="number" ng-model="userInfo.userAge" placeholder="未设置" class="">
                        </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-gender"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">性别</div>
                        <div class="item-input">
                            <select ng-model="userInfo.userSexWord" ng-options="x for x in ['男','女']"></select>
                        </div>
                    </div>
                </div>
            </li>
            <li class="align-top">
                <div class="item-content">
                    <div class="item-media"><i class="icon icon-form-comment"></i></div>
                    <div class="item-inner">
                        <div class="item-title label">个人签名</div>
                        <div class="item-input">
                            <textarea ng-model="userInfo.userDetail" placeholder="未设置"></textarea>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>

<div ng-init="suiMobileInit()"></div>